Optimal. Leaf size=129 \[ \frac{a (g \tan (e+f x))^{p+1} \, _2F_1\left (1,\frac{p+1}{2};\frac{p+3}{2};-\tan ^2(e+f x)\right )}{f g (p+1)}+\frac{a \sin (e+f x) \cos ^2(e+f x)^{\frac{p+1}{2}} (g \tan (e+f x))^{p+1} \, _2F_1\left (\frac{p+1}{2},\frac{p+2}{2};\frac{p+4}{2};\sin ^2(e+f x)\right )}{f g (p+2)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.138781, antiderivative size = 129, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.238, Rules used = {2710, 3476, 364, 2602, 2577} \[ \frac{a (g \tan (e+f x))^{p+1} \, _2F_1\left (1,\frac{p+1}{2};\frac{p+3}{2};-\tan ^2(e+f x)\right )}{f g (p+1)}+\frac{a \sin (e+f x) \cos ^2(e+f x)^{\frac{p+1}{2}} (g \tan (e+f x))^{p+1} \, _2F_1\left (\frac{p+1}{2},\frac{p+2}{2};\frac{p+4}{2};\sin ^2(e+f x)\right )}{f g (p+2)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2710
Rule 3476
Rule 364
Rule 2602
Rule 2577
Rubi steps
\begin{align*} \int (a+a \sin (e+f x)) (g \tan (e+f x))^p \, dx &=\int \left (a (g \tan (e+f x))^p+a \sin (e+f x) (g \tan (e+f x))^p\right ) \, dx\\ &=a \int (g \tan (e+f x))^p \, dx+a \int \sin (e+f x) (g \tan (e+f x))^p \, dx\\ &=\frac{(a g) \operatorname{Subst}\left (\int \frac{x^p}{g^2+x^2} \, dx,x,g \tan (e+f x)\right )}{f}+\frac{\left (a \cos ^{1+p}(e+f x) \sin ^{-1-p}(e+f x) (g \tan (e+f x))^{1+p}\right ) \int \cos ^{-p}(e+f x) \sin ^{1+p}(e+f x) \, dx}{g}\\ &=\frac{a \, _2F_1\left (1,\frac{1+p}{2};\frac{3+p}{2};-\tan ^2(e+f x)\right ) (g \tan (e+f x))^{1+p}}{f g (1+p)}+\frac{a \cos ^2(e+f x)^{\frac{1+p}{2}} \, _2F_1\left (\frac{1+p}{2},\frac{2+p}{2};\frac{4+p}{2};\sin ^2(e+f x)\right ) \sin (e+f x) (g \tan (e+f x))^{1+p}}{f g (2+p)}\\ \end{align*}
Mathematica [F] time = 2.02497, size = 0, normalized size = 0. \[ \int (a+a \sin (e+f x)) (g \tan (e+f x))^p \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.907, size = 0, normalized size = 0. \begin{align*} \int \left ( a+a\sin \left ( fx+e \right ) \right ) \left ( g\tan \left ( fx+e \right ) \right ) ^{p}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (f x + e\right ) + a\right )} \left (g \tan \left (f x + e\right )\right )^{p}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (a \sin \left (f x + e\right ) + a\right )} \left (g \tan \left (f x + e\right )\right )^{p}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} a \left (\int \left (g \tan{\left (e + f x \right )}\right )^{p}\, dx + \int \left (g \tan{\left (e + f x \right )}\right )^{p} \sin{\left (e + f x \right )}\, dx\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (f x + e\right ) + a\right )} \left (g \tan \left (f x + e\right )\right )^{p}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]